package com.xinhuo.domain.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import java.io.Serializable;

/**
 * 
 * @author 张新林 时间 2016年3月15日下午7:58:46 包名 com.xinhuo.travel.domain.po 类名 User 用户
 * 
 */
@Entity
public class User implements Serializable
{
	

	@Override
	public String toString() {
		return "User [id=" + id + ", username=" + username + ", sex=" + sex
				+ ", countSum=" + countSum + ", correctSum=" + correctSum + "]";
	}
	private static final long serialVersionUID = -47518867756499394L;
	@Id
	@GeneratedValue
	private Integer id; // 用户编号
	private String username;
	private String sex;
	private Integer level;
	@Column(name="countSum",columnDefinition="tinyint default 0")
	private int countSum=0;
	@Column(name="correctSum",columnDefinition="tinyint default 0")
	private int correctSum=0;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public int getCountSum() {
		return countSum;
	}
	public void setCountSum(int countSum) {
		this.countSum = countSum;
	}
	public int getCorrectSum() {
		return correctSum;
	}
	public void setCorrectSum(int correctSum) {
		this.correctSum = correctSum;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}
}
